package Java.BlackHorse.Stream;

import java.util.Arrays;
import java.util.function.Consumer;
import java.util.function.IntConsumer;

public class StreamDemo3 {
    public static void main(String[] args) {
        //数组
        int[] arr = {1,2,3,4,5,6,7,8};
        Arrays.stream(arr).forEach( value -> System.out.println(value));

        System.out.println("====================");

        String[] arr2 = {"a","b","c"};
        Arrays.stream(arr2).forEach(s-> System.out.println(s));
    }
}
